#include "StdAfx.h"
#include "PlatEngine.h"
#include "SinaAccessAuthoriseDlg.h"

RT_EXPORT_C CRtString GetSinaAuthCode(const CRtString& strUri)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());

	CSinaAccessAuthoriseDlg dlg;
	dlg.m_strReqAuthUrl=strUri;

	INT_PTR n=dlg.DoModal();
	if(n==IDOK)
		return dlg.m_strCode;
	else
		return "";
}
